<template>
	<view class="classfic">
		<home-item v-for="(item,index) in list" :key="index" :item="item" :type="1"></home-item>
	</view>
</template>

<script setup>
	import {useGlobalStore} from "@/stores/global.js";
	import {getMoreClassicList} from "@/api/index.js";
	import {ref,onMounted} from "vue"
	const store = useGlobalStore();
	const offset = ref(0);
	const list = ref([]);
	const getData = async ()=>{
		let res = await getMoreClassicList(offset.value);
		console.log(res);
		list.value = res.data;
	}
	onMounted(()=>{
		getData();
	})
</script>

<style lang="scss" scoped>
.classfic{
	width: 100%;
	box-sizing: border-box;
	padding: 20rpx;
}
</style>